/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lanSimulation.tests;
import lanSimulation.internals.Workstation;
import lanSimulation.LogManager;
import junit.framework.TestCase;
import java.io.Writer;
import junit.framework.TestCase;
/**
 *
 * @author Administrator
 */
public class WorkstationTest extends NodeTest{
    
    Writer reportwriter;
    Workstation wst=new lanSimulation.internals.Workstation("test",new LogManager(reportwriter));

    @Override
    public void testPrintOn(){
        StringBuffer buf=new StringBuffer();
        wst.printOn(buf);
        assertEquals(buf.substring(0),"Workstation ".concat(wst.name_).concat(" [Workstation]"));
    }

    public void testXMLOn(){
        StringBuffer buf=new StringBuffer();
        wst.printXmlOn(buf);
        assertEquals(buf.substring(0),"<workstation>".concat(wst.name_).concat("</workstation>"));
     }
}
